import { Routes, RouterModule }  from '@angular/router';
import {OrderComponent} from "./order.component";
import {OrderDetailComponent} from "./order-detail/order-detail.component";
import {OrderNewComponent} from "./order-new/order-new.component";
import {OrderReciveComponent} from "./order-recive/order-recive.component";
import {OrderCompleteComponent} from "./order-complete/order-complete.component";
import {OrderRevokeComponent} from "./order-revoke/order-revoke.component";
import {OrderConfirmComponent} from "./order-confirm/order-confirm.component";

const routes:Routes = [
  { path: '', component: OrderComponent },
  { path: 'neworder', component:OrderNewComponent},
  { path: 'orderdetail/:orderId', component:OrderDetailComponent},
  { path: 'receive/:orderId', component:OrderReciveComponent},
  { path: 'complete/:orderId', component:OrderCompleteComponent},
  { path: 'confirm/:orderId', component:OrderConfirmComponent},
  { path: 'revoke/:orderId', component:OrderRevokeComponent}
];

export const OrderRoute = RouterModule.forChild(routes);
